import vue from 'vue';
import OperationBoxVue from './OperationBox.vue';

const BoxConstructor = vue.extend(OperationBoxVue);

let showBox = (params) => {
  const instance = new BoxConstructor({
    data() {
      return {
        operation: params
      }
    }
  })
  instance.$mount();
  document.body.appendChild(instance.$el);
}

function operationBox() {
  vue.prototype.$operationBox = showBox;
}

export default operationBox;